package com.hopes.bizz.protocol.hj212.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author daijie
 * @version 1.0
 * @date 2023/7/11 10:41
 * @Description:
 */
@Data
@Schema(description = "hj212协议转发mq消息日志")
@EqualsAndHashCode(callSuper = false)
public class ProtocolHj212MqLogDTO implements Serializable {

    private static final long serialVersionUID = 8007057516062255956L;

    @Schema(description="id")
    private Long id;

    @Schema(description="消息发送结果")
    private Boolean success;

    @Schema(description="消息内容主体")
    private String textMessage;

    @Schema(description="消息发送时间")
    private Date sendTime;

    @Schema(description="消息队列")
    private String queue;

    @Schema(description="消息topic")
    private String topic;

    @Schema(description="消息交付模式")
    private Integer deliveryMode;

    @Schema(description="消息确认模式")
    private Integer acknowledgeMode;

    @Schema(description="发送失败错误码")
    private String errorCode;

    @Schema(description="发送结果详情")
    private String detailMessage;

    /**
     * 开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date beginTime;

    /**
     * 结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
}
